package com.ysq.www.api.work.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ysq.www.api.work.entity.FirmTrade;
import com.ysq.www.api.work.service.IFirmTradeService;
import com.ysq.www.common.annotation.AuthToken;
import com.ysq.www.common.result.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 行业表 前端控制器
 * </p>
 *
 * @author dql
 * @since 2020-08-18
 */
@RestController
@RequestMapping("/work/firmTrade")
public class FirmTradeController {

    @Autowired
    private IFirmTradeService firmTradeService;

    /**
     * 查询行业标签
     * @return
     */
    @GetMapping("/select")
    @AuthToken
    public ResultMsg selectTrade(){
        List<FirmTrade> list = firmTradeService.list();
        return ResultMsg.SUCCESS.setNewData(list).setNewData("查询行业标签成功!");
    }

}
